SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 47182: Adding a leading zero to the %s directive in a PICTURE statement in PROC FORMAT does not insert a leading zero as documented

DetailsCodeOutputAboutRate It

New in SAS® 9.3 is the ability to format fractional seconds with the %s directive in the PICTURE statement in PROC FORMAT.

Attempting to add a leading zero to the formatted value of fractional seconds by inserting a leading zero before the picture directive (for example, %0s) does not insert a leading zero. The documentation for the PICTURE statement in the FORMAT procedure incorrectly states that you can insert a leading zero before this directive.

Please click the Full Code tab to see an example of this issue as well as a workaround.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled Solaris9.3 TS1M09.4 TS1M2
HP-UX IPF9.3 TS1M09.4 TS1M2
Linux9.3 TS1M09.4 TS1M2
Linux for x649.3 TS1M09.4 TS1M2
Solaris for x649.3 TS1M09.4 TS1M2
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M2
64-bit Enabled AIX9.3 TS1M09.4 TS1M2
Windows Vista for x649.3 TS1M0
Windows 7 Ultimate x649.3 TS1M09.4 TS1M2
Windows 7 Ultimate 32 bit9.3 TS1M09.4 TS1M2
Windows 7 Professional x649.3 TS1M09.4 TS1M2
Windows 7 Home Premium x649.3 TS1M09.4 TS1M2
Windows 7 Home Premium 32 bit9.3 TS1M09.4 TS1M2
Windows 7 Enterprise 32 bit9.3 TS1M09.4 TS1M2
Microsoft Windows XP Professional9.3 TS1M0
Microsoft Windows Server 2008 R29.3 TS1M09.4 TS1M2
Microsoft Windows Server 20089.3 TS1M09.4 TS1M2
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M2
z/OS9.3 TS1M09.4 TS1M2
Z649.3 TS1M09.4 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M2
Windows 7 Enterprise x649.3 TS1M09.4 TS1M2
Windows 7 Professional 32 bit9.3 TS1M09.4 TS1M2
Windows Vista9.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.